function $(ref)
{
    return document.getElementById(ref);
}

window.onload = function ()
{
    var col1 = $('news-left-bar');
    var col2 = $('news-mid-right-bar');
    var col3 = $('news-middle-bar');
    var col4 = $('news-right-bar');
    var col5 = $('news-top-bar');
    var h = Math.max(Math.max(col1.clientHeight, 
                    col3.clientHeight + col5.clientHeight), 
                    col4.clientHeight + col5.clientHeight);
    col1.style.height = h.toString()+"px";
    col2.style.height = (h-col5.clientHeight).toString()+"px";
    col3.style.height = (h-col5.clientHeight).toString()+"px";

    var nc = $("news-cols");
    nc.onclick = function(e) {
        if(! e)
            e = window.srcElement;
        var t = e.target;
        return false;
    }
}
